#include "bubblesort.h"
void bubble_sort(int arry[], int length) {
    int i, j;
    for (i = 0; i < length - 1; i++)
        for (j = 0; j < length - i - 1; j++)
            if (arry[j] <= arry[j + 1]) swap(arry + j, arry + (j + 1));
}